host_name_file = open('/etc/pacman.d/mirrorlist', mode='w')
host_name_file.write("Server = https://mirrors.bfsu.edu.cn/archlinux/$repo/os/$arch")
host_name_file.close()

import subprocess
subprocess.run("pacman -Sy git", shell=True)
subprocess.run("git clone https://gitee.com/mte001/alis-py.git", shell=True)